Change base URL
-
Open
<project>/lib/service/api_service.dart
and replace baseUrl variable value with your own URL-
Put your base url like that –
static const mainBaseUrl = 'https://your_server_ip:your_port/';
-
danger
Warning: Do not change the port. The port will be automatically selected.
But if you want to change it, make sure to change the port in the server and update the app's port as well.